import http from "../utils/http/service";

// 新增学术
export const postCommunicateAdd = (data): any => {
  return http.post("/rdms-admin/communicate/add", data);
};
// 获取列表
export const postCommunicateList = (data): any => {
  return http.post("/rdms-admin/communicate/list", data);
};

// 删除文档
export const postCommunicateDelete = (data): any => {
  return http.post(`/rdms-admin/communicate/delete/${data.id}`, {});
};

// 更新
export const postCommunicateUpdate = (data): any => {
  return http.post("/rdms-admin/communicate/update", data);
};

// 详情
export const postCommunicateInfo = (data): any => {
  return http.post(`/rdms-admin/communicate/detail/${data.id}`, {});
};

// 发布、撤回-更新接口20221130
export const postPublishStatus = (data): any => {
  return http.post(`/rdms-admin/communicate/update/publishStatus`, data);
};
